package com.bookcity.service;

import com.bookcity.dao.UserMapper;
import com.bookcity.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Trioutia
 * @Date: 2022/5/23 - 05 - 23 - 13:01
 * @Description: com.bookcity.service
 * @version: 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    private UserMapper usersd;

    @Autowired
    public void setUsersd(UserMapper usersd) {
        this.usersd = usersd;
    }

    @Override
    public int addUsers(User Users) {
        return usersd.addUsers(Users);
    }

    @Override
    public int deleteUsers(int uid) {
        return usersd.deleteUsers(uid);
    }

    @Override
    public int updateUsers(User Users) {
        return usersd.updateUsers(Users);
    }

    @Override
    public User queryUsers(int uid) {
        return usersd.queryUsers(uid);
    }

    @Override
    public User queryLastOne() {   return usersd.queryLastOne();   }

    @Override
    public List<User> queryAllUsers() {
        return usersd.queryAllUsers();
    }

}
